﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Infrastructure.UnitWork
{
    public interface IUnitOfWork
    {
        public SqlSugarScope SqlSugarScope { get; init; }

        //public DbContext DbContext { get; init; }
        void BeginTran();

        void CommitTran();
        void RollbackTran();

        void BeginUnitOfWork();
        void CommitUnitOfWork();

        void DisposeUnitOfWork();
    }
}
